package com.xbxkj.mix.serviceImpl;

import cn.hutool.extra.mail.MailUtil;
import com.xbxkj.mix.bean.User;
import com.xbxkj.mix.mapper.UserMapper;
import com.xbxkj.mix.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户 服务实现类
 * </p>
 *
 * @author 张子艺
 * @since 2019-08-06
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {


   // @Async
    @Override
    public void executeAsync2( int i) {

            log.debug("第"+i+"个邮件");
            MailUtil.send("1243424017@qq.com", "我是你第"+i+"个爸爸", "我是你第"+i+"个爸爸", false);

    }

}
